package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    private Long id;//产品的id
    private String productName;//产品的名称
    private String sn;//产品的编号
    private String unit;//产品的单位
    private BigDecimal cosePrice = BigDecimal.ZERO;//售价
    private Integer number = 0;//数量
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date incom;//产品入库的时间
    private Shop shop;//所属店铺
}